/**
 * 
 */
package cosc617_blackteam;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author Laura
 * Class representing a collection of Tabs
 */
public class TabCollection implements Iterable<I_Tab> {
	private ArrayList<I_Tab> tabs;
	public TabCollection(){
		tabs = new ArrayList<I_Tab>();
	}
	
	public void addTab(I_Tab t){
		tabs.add(t);
	}
	
	public Iterator<I_Tab> iterator(){
		return new DefaultTabIterator(tabs);
	}
}
